
#include <stdlib.h>
#include "dll.h"

int		dll_count(t_dll **node)
{
  int		i;
  t_dll		*c_node;

  c_node = *node;
  dll_first(&c_node);
  while (c_node != NULL)
    {
      i++;
      c_node = c_node->next;
    }
  return (i);
}
